<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout"
      layout:decorate="~{layout/layout}">
<head>
    <title>分类</title>
    <meta name="Keywords" content="keywords" th:content="|${site.getFixKeyWord()}|">
    <meta name="description" content="description" th:content="|${site.getFixDescription()}|">
    <style>
        #content-container:before {
            display: none;
        }
    </style>
</head>
<body>
<ul id="mainnav-menu" class="list-group" layout:fragment="menu"
    th:include="fragments/common::menu('/blogPost/category')"></ul>
<div id="page-content" layout:fragment="content">
    <div class="row fixed-fluid">
        <div class="panel">
            <div class="panel-body">
                <p th:each="item:${catBlog.toList()}">
                    <a href="#" th:href="@{/blogPost/view/{postId}(postId=${item.postId})}"
                       th:utext="${item.title}">链接</a><span th:utext="${item.author.username}"
                                                            th:if="${item.author}">作者</span>
                </p>

                <div class="row">
                    <div class="col-sm-5">
                        <div th:text="|展现${catBlog.pageable.pageNumber+1}页 ,共计${catBlog.totalPages}页,合计${catBlog.totalElements}条|"></div>
                    </div>
                    <div class="col-sm-7 text-right">
                        <ul class="pagination"
                            th:replace="fragments/common::pager(${catBlog.pageable.pageNumber+1},${catBlog.totalPages},@{/blogPost/category/{catName}/{page}(catName=${catName})})"/>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
</body>
</html>
